<!-- pass a variable to included page -->
<%@ page import="SSP.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<% 

   String today = null;
   Today t = new Today();
   today = t.getToday();
   request.setAttribute("picture","Dispatcher");
   request.setAttribute("title", "Shipping Calculator"); 
   request.setAttribute("header", "Welcome : Today is " + today); 

  	int Quantity=Integer.parseInt(request.getParameter("Quantity"));        
  	int ItemWeight=Integer.parseInt(request.getParameter("ItemWeight"));      		
	float Carrier=Float.parseFloat(request.getParameter("Carrier"));    					
    float Delivery=Float.parseFloat(request.getParameter("Delivery"));  					
    String htmlstring = ""; %>

    
  <%@ include file="header.jsp"%> 
    <TD width="820" vAlign="top">   
<%  
    ShipCalculator sc=new ShipCalculator();
    sc.setHtmlstring(htmlstring);
    sc.setQuantity(Quantity);
    sc.setItemWeight(ItemWeight);
    sc.setCarrier(Carrier);
    sc.setDelivery(Delivery);
    htmlstring = sc.getHtmlstring();
%>	

<%=htmlstring%>

<br>

<form name="myForm">
 <input type="Button" name="myButton" value="Back" onClick="history.back()">
</form>


</TD>
</TR>
</TABLE>
</BODY>
</HTML>